# coding:utf-8
# 曾山
# 时间 2022/5/8 1:48
from flask import Blueprint
from flask_restful import Api
from comment.utils.output import output_json
index_bp = Blueprint('index',__name__,url_prefix='/index')

index_api = Api(index_bp)


index_api.representation('application/json')(output_json)

from Shopping.resources.index.index_resource import *
index_api.add_resource(Shopping_Category,'/category',endpoint='category')
index_api.add_resource(Shoping_HomeNewProduct,'/home_new_product',endpoint='home_new_product')
index_api.add_resource(Shopping_HomeRecommendProduct,'/home_recommend_product',endpoint='home_recommend_product')
index_api.add_resource(Shopping_RecommentSubject,'/recommend_subject',endpoint='recommend_subject')